package com.yiibai.springmvc.view_resoulver;
import org.springframework.web.servlet.view.freemarker.FreeMarkerViewResolver;

/**
 * @author xiangyongzhou
 *
 */
public class CustomFreeMarkerViewResolver extends FreeMarkerViewResolver {
    public CustomFreeMarkerViewResolver() {
        setViewClass( requiredViewClass() );
    }

   /**
    * Requires {@link org.springframework.web.servlet.view.freemarker.FreeMarkerView}.
    */
   @Override
   protected Class<CustomFreeMarkerView> requiredViewClass() {
      return CustomFreeMarkerView.class;
   }
}